<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">

    <h:form id="ScsgtbusurolListForm">

        <p:panel header="#{myBundle.ListScsgtbusurolTitle}">

            <p:dataTable id="datalist" value="#{scsgtbusurolController.items}" var="item"
                         selectionMode="single" selection="#{scsgtbusurolController.selected}"
                         rowKey="#{item.scsgtbusurolid}"
                         paginator="true"
                         rows="5"
                         rowsPerPageTemplate="5,10,20,30"
                         >

                <p:ajax event="rowSelect"   update="createButton viewButton editButton deleteButton"/>
                <p:ajax event="rowUnselect" update="createButton viewButton editButton deleteButton"/>

                <p:column sortBy="#{item.scsgtbusurolid}" filterBy="#{item.scsgtbusurolid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_scsgtbusurolid}"/>
                    </f:facet>
                    <h:outputText value="#{item.scsgtbusurolid}"/>
                </p:column>
                <p:column sortBy="#{item.habilitado}" filterBy="#{item.habilitado}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_habilitado}"/>
                    </f:facet>
                    <h:selectBooleanCheckbox id="habilitado" value="#{item.habilitado}" title="#{myBundle.EditScsgtbusurolTitle_habilitado}" required="true" requiredMessage="#{myBundle.EditScsgtbusurolRequiredMessage_habilitado}" disabled="true"/>
                </p:column>
                <p:column sortBy="#{item.fechainicio}" filterBy="#{item.fechainicio}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_fechainicio}"/>
                    </f:facet>
                    <h:outputText value="#{item.fechainicio}"/>
                </p:column>
                <p:column sortBy="#{item.caducidad}" filterBy="#{item.caducidad}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_caducidad}"/>
                    </f:facet>
                    <h:selectBooleanCheckbox id="caducidad" value="#{item.caducidad}" title="#{myBundle.EditScsgtbusurolTitle_caducidad}" required="true" requiredMessage="#{myBundle.EditScsgtbusurolRequiredMessage_caducidad}" disabled="true"/>
                </p:column>
                <p:column sortBy="#{item.fechafin}" filterBy="#{item.fechafin}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_fechafin}"/>
                    </f:facet>
                    <h:outputText value="#{item.fechafin}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                </p:column>
                <p:column sortBy="#{item.hinvestig}" filterBy="#{item.hinvestig}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_hinvestig}"/>
                    </f:facet>
                    <h:outputText value="#{item.hinvestig}"/>
                </p:column>
                <p:column sortBy="#{item.hacademicas}" filterBy="#{item.hacademicas}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_hacademicas}"/>
                    </f:facet>
                    <h:outputText value="#{item.hacademicas}"/>
                </p:column>
                <p:column sortBy="#{item.fecharegistro}" filterBy="#{item.fecharegistro}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_fecharegistro}"/>
                    </f:facet>
                    <h:outputText value="#{item.fecharegistro}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                </p:column>
                <p:column sortBy="#{item.observaciones}" filterBy="#{item.observaciones}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_observaciones}"/>
                    </f:facet>
                    <h:outputText value="#{item.observaciones}"/>
                </p:column>
                <p:column sortBy="#{item.scthtbmodalidaid.scthtbmodalidaid}" filterBy="#{item.scthtbmodalidaid.scthtbmodalidaid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_scthtbmodalidaid}"/>
                    </f:facet>
                    <h:outputText value="#{item.scthtbmodalidaid.scthtbmodalidaid}"/>
                </p:column>
                <p:column sortBy="#{item.scthtbdatosgenid.scthtbdatosgenid}" filterBy="#{item.scthtbdatosgenid.scthtbdatosgenid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_scthtbdatosgenid}"/>
                    </f:facet>
                    <h:outputText value="#{item.scthtbdatosgenid.scthtbdatosgenid}"/>
                </p:column>
                <p:column sortBy="#{item.scsgtbrolesid.scsgtbrolesid}" filterBy="#{item.scsgtbrolesid.scsgtbrolesid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_scsgtbrolesid}"/>
                    </f:facet>
                    <h:outputText value="#{item.scsgtbrolesid.scsgtbrolesid}"/>
                </p:column>
                <p:column sortBy="#{item.scittbfadeceid.scittbfadeceid}" filterBy="#{item.scittbfadeceid.scittbfadeceid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_scittbfadeceid}"/>
                    </f:facet>
                    <h:outputText value="#{item.scittbfadeceid.scittbfadeceid}"/>
                </p:column>
                <p:column sortBy="#{item.scittbescunid.scittbescunid}" filterBy="#{item.scittbescunid.scittbescunid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScsgtbusurolTitle_scittbescunid}"/>
                    </f:facet>
                    <h:outputText value="#{item.scittbescunid.scittbescunid}"/>
                </p:column>
                <f:facet name="footer">
                    <p:commandButton id="createButton" icon="ui-icon-plus"   value="#{myBundle.Create}" actionListener="#{scsgtbusurolController.prepareCreate}" update=":ScsgtbusurolCreateForm" oncomplete="ScsgtbusurolCreateDialog.show()"/>
                    <p:commandButton id="viewButton"   icon="ui-icon-search" value="#{myBundle.View}" update=":ScsgtbusurolViewForm" oncomplete="ScsgtbusurolViewDialog.show()" disabled="#{empty scsgtbusurolController.selected}"/>
                    <p:commandButton id="editButton"   icon="ui-icon-pencil" value="#{myBundle.Edit}" update=":ScsgtbusurolEditForm" oncomplete="ScsgtbusurolEditDialog.show()" disabled="#{empty scsgtbusurolController.selected}"/>
                    <p:commandButton id="deleteButton" icon="ui-icon-trash"  value="#{myBundle.Delete}" actionListener="#{scsgtbusurolController.delete}" update=":growl,datalist" disabled="#{empty scsgtbusurolController.selected}"/>
                </f:facet>

            </p:dataTable>

        </p:panel>

    </h:form>

</ui:composition>